mod opcode;
use opcode::{Opcode, Code}

struct Interpreter {
    stack: Vec<u8>,
}

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let args: Vec<String> = std::env::args().collect();
    let data = std::fs::read(&args[1])?;
    let code = opcode::Code::from(data)?;

    println!("{:?}", code.instrs);

    Ok(())
}
